package com.sluggard.security.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sluggard.security.manage.model.entity.RoleMenuEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 角色菜单关联 Mapper 接口
 * </p>
 *
 * @author lizheng
 * @since 2024-04-28
 */
public interface RoleMenuMapper extends BaseMapper<RoleMenuEntity> {

    List<Long> selectMenusByRoleId(@Param("roleId") Long roleId);

    void deleteByRoleId(@Param("roleId") Long roleId);
}
